<template>
  <div>
    重定向
  </div>
</template>

<script>
import {WXback} from '@/api/index'
export default {
  data() {
    return {};
  },

  methods: {},
  created() {
    if (this.$route.query.state && this.$route.query.code) {
      let data = {
        code: this.$route.query.code,
        state: this.$route.query.state
      };
      WXback(data).then(res=>{
        console.log(res)
      })
    }
  }
};
</script>
<style lang="" scoped></style>
